package org.dromara.bykt.domain.bo;

import org.dromara.bykt.domain.BYKTCourseScore;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 考试分数业务对象 course_score
 *
 * @author Hou
 * @date 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BYKTCourseScore.class, reverseConvertGenerate = false)
public class BYKTCourseScoreBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 学生ID
     */
    @NotNull(message = "学生ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long stuId;

    /**
     * 课程ID
     */
    @NotNull(message = "课程ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long courseId;

    /**
     * 试卷ID
     */
    @NotNull(message = "试卷ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long simulationId;

    /**
     * 分数
     */
    @NotNull(message = "分数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long score;

    /**
     * 考试所用时间（分钟）
     */
    private Long examSpentTime;


}
